import http from '@/utils/http'
//
/**
 * @params request 请求地址
 * @param '/testIp' 代表vue-cli中config, index.js中配置代理
 */
let request = ''

//  账号类型
export function addUser(params){
  return http.post(`${request}/yyymobile/sys/api/v1/users/addUser`, params)
}



//获取短信验证码
export function sendSmsCode(params){
  return http.get(`${request}/yyymobile/sys/api/v1/utils/sendSmsCode`, params)
}

//获取短信验证码
export function getUserList(params){
  return http.post(`${request}/yyymobile/sys/api/v1/users/getUserList`, params)
}



//获取短信验证码
export function getUserInfo(params){
  return http.get(`${request}/yyymobile/sys/api/v1/users/getUserInfo`, params)
}



export function updateUserInfo(params){
  return http.put(`${request}/yyymobile/sys/api/v1/users/updateUserInfo`, params)
}

